import request from '@/utils/request'

export default {
  //获取课程列表
  getCourseList(page, size,searchObj) {
    return request({
      url: `/eduservice/coursefront/getCourseFrontList/${page}/${size}`,
      method: 'post',
      data: searchObj
    })
  },

  //获取课程分类
  getSubjectList() {
    return request({
      url: `/eduservice/subject/getList`,
      method: 'get'
    })
  },

  //获取课程详情信息
  getCourseDetail(courseId) {
    return request({
      url: `/eduservice/coursefront/getCourseFrontInfo/${courseId}`,
      method: 'post'
    })
  }

}
